package com.ssy.lingxi.pay.api.dto.request.eAccount;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * e账号平台代付实体
 * @author jw.chen
 * @version 2.0.0
 * @date 2021/12/9
 */
@Data
public class PlatFormRePayRequest implements Serializable {
    private static final long serialVersionUID = -8636171919543633361L;

    /**
     * 商户订单号
     */
    @NotBlank(message = "支付订单编码不能为空")
    @Size(max = 32, message = "支付订单编码最长32个字符")
    private String orderCode;

    /**
     * 会员id(收款方)
     */
    private Long memberId;

    /**
     * 会员角色id(收款方)
     */
    private Long memberRoleId;

    /**
     * 金额
     */
    private Double payMoney;

    /**
     * 多个收款方时需要传
     */
    @Valid
    private List<ReceivePaymentRequest> receiveList;

}
